#include <dolphin/socket.h>
#define SO_VENDOR_NINTENDO 0x0000 // Nintendo TCP/IP stack
#define SO_VERSION 0x0100 // Version 1.0
typedef struct SOConfig
{
u16 vendor; // SO_VENDOR_NINTENDO
u16 version; // SO_VERSION
//
// vendor specific section
//
:
:
:
} SOConfig;
int SOStartup ( SOConfig* config );
SOStartup() initializes the socket layer of the TCP/IP library.
The SOConfig parameter
must be properly initialized in a vendor specific way prior to the call.
config |
A pointer to the SOConfig structure to set. |
| zero | Succeeded. |
SO_EINVAL |
Invalid operation. |
SO_ENOMEM |
Insufficient memory. |
Note: Additional errors may be generated and returned in future library releases. All the negative return values must be treated as generic errors.